package com.tengju.user.application.common;

import com.tengju.user.domain.service.HuaweiObsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public class FileService {

    public final HuaweiObsService huaweiObsService;

    public FileService(HuaweiObsService huaweiObsService){
        this.huaweiObsService = huaweiObsService;
    }

    public String uploadImg(MultipartFile multipartFile) {
        return huaweiObsService.uploadImg(multipartFile);
    }

    public String upload(MultipartFile multipartFile) {
        return huaweiObsService.upload(multipartFile);
    }
}
